package org.zezs.sync.mongo.config.mongo;

import com.alibaba.fastjson.annotation.JSONField;
import com.mongodb.MongoClient;

public class MongoConfig {

    /** es的名称,作为同步SyncEnt 同步数据源或者目的名称 */
    private String database;
    private String source;
    //请求地址
    private String uri;
    private boolean use = false;
    @JSONField(serialize = false)
    private transient MongoClient mongoClient;

    /** 代理配置 */
    private Proxy proxy;

    public String getDatabase() {
        return database;
    }

    public void setDatabase(String database) {
        this.database = database;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public MongoClient getMongoClient() {
        return mongoClient;
    }

    public void setMongoClient(MongoClient mongoClient) {
        this.mongoClient = mongoClient;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public boolean isUse() {
        return use;
    }

    public void setUse(boolean use) {
        this.use = use;
    }

    public Proxy getProxy() {
        return proxy;
    }

    public void setProxy(Proxy proxy) {
        this.proxy = proxy;
    }
}
